//
//  XFBaseTableViewController.h
//  OrderFood
//
//  Created by xiaofang wang on 2018/10/24.
//  Copyright © 2018年 zhiyuan. All rights reserved.
//

#import "BaseViewController.h"
typedef NS_ENUM(NSInteger,LSRefreshType){
    LSRefreshTypeDefault = 0,       //默认刷新模式，头部刷新和底部加载更多
    LSRefreshTypeJustHeader,        //仅仅有头部刷新
    LSRefreshTypeJustFooter,        //仅仅末尾加载更多
    LSRefreshTypeNo                 //不使用
};
NS_ASSUME_NONNULL_BEGIN

@interface XFBaseTableViewController : BaseViewController
/**表格*/
@property (nonatomic, strong, readonly) UITableView* mytableview;
- (void)loadTableViewWithFrame:(CGRect)frame tableViewStyle:(UITableViewStyle)style refreshStyle:(LSRefreshType)refreshtype;
- (void)requestNewData;//刷新新数据
- (void)requestMoreData;//加载更多数据
- (void)ls_headerBeginRefreshing;
- (void)ls_headerEndRefreshing;
- (void)ls_footerEndRefreshing;
@end

NS_ASSUME_NONNULL_END
